{% extends "themes/default/base.html" %}
{% load i18n %}

{% block header %}
{% endblock %}

{% block col1 %}
<ol class="article-list">
{% for article in articles.object_list %}
	<li>
		<h3>
			<a href='{{ article.get_absolute_url }}' title='{{ article.title }}'>
				{{ article.title }}</a>
		</h3>
		<div>
			{% trans "Posted on" %}: {{ article.created_date|date:"Y-m-d H:i" }} |
			{% trans "Browse" %}: {{ article.history.count }}
		</div>
	</li>
{% endfor %}
</ol>
{% if articles.has_previous %}
<a href="?page={{ articles.previous_page_number }}">previous</a>
{% endif %}
{% for page in articles_page_range %}
    {% ifequal page articles.number %}
    <span>{{ page }}</span>
    {% else %}
    <a href="?page={{ page }}">{{ page }}</a>
    {% endifequal %}
{% endfor %}
{% if articles.has_next %}
    <a href="?page={{ articles.next_page_number }}">next</a>
{% endif %}

{% endblock %}

{% block col2 %}
<div id="article-archives">
	<h2>{% trans "Article Archives" %}</h2>
	<ul>
	{% for key, value in year_list.items %}
		<li>
			<strong>{{ key }}</strong>
			<ul>
			{% for subkey, subvalue in value %}
                <li><a href="{% url show_article_month member.username, key, subkey %}" 
                	title="{% trans 'View articles posted in this month' %}">{{ subvalue }}</a></li>
            {% endfor %}
          	</ul>
			<div>&nbsp;</div>
		</li>
	{% endfor %}
	</ul>
</div>
{% endblock %}
